import request from '@/utils/request'

// 查询分账记录列表
export function listMallSeperateRecord(query) {
  return request({
    url: '/mall/mallSeperateRecord/list',
    method: 'get',
    params: query
  })
}

// 查询分账记录详细
export function getMallSeperateRecord(id) {
  return request({
    url: '/mall/mallSeperateRecord/' + id,
    method: 'get'
  })
}

// 新增分账记录
export function addMallSeperateRecord(data) {
  return request({
    url: '/mall/mallSeperateRecord',
    method: 'post',
    data: data
  })
}

// 修改分账记录
export function updateMallSeperateRecord(data) {
  return request({
    url: '/mall/mallSeperateRecord',
    method: 'put',
    data: data
  })
}

// 删除分账记录
export function delMallSeperateRecord(id) {
  return request({
    url: '/mall/mallSeperateRecord/' + id,
    method: 'delete'
  })
}
